using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Tutorial : MonoBehaviour
{
    public GameObject step1;
    public GameObject step2;

    private void Awake()
    {
        MessageManager.BindAction(MsgKey.OpenGate, OpenGate);
        MessageManager.BindAction(MsgKey.ClickForward, TutEnd);
        MessageManager.BindAction(MsgKey.ClickRight, TutEnd);
        MessageManager.BindAction(MsgKey.ClickUp, TutEnd);
    }

    void OpenGate()
    {
        step1.SetActive(false);
        step2.SetActive(true);
    }

    void TutEnd()
    {
        step1.SetActive(false);
        step2.SetActive(false);
    }
}
